package io.gitee.yth.design.pattern.test.core.pattern.behavioral.command;

/**
 * 空命令：不执行任何操作
 * <p>
 * 1. 用于初始化每个invoker
 * 2. 引入空操作，省略判null操作
 *
 * @author yth
 * @since 2023-04-28-23:47
 */
public class NoCommand implements Command {

    @Override
    public void execute() {
        System.out.println("execute no command ...");
    }

    @Override
    public void undo() {
        System.out.println("undo no command ...");
    }
}
